package com.bdqn.desiremall.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Mall_User implements Serializable {
    private Integer userId;

    private String userName;

    private String userPassword;

    private Integer userGender;

    private String userMobileCode;

    private Double userMoney;

    private String userEmail;

    private Date userRegistrationTime;

    private Integer userState;

    private String userImage;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword == null ? null : userPassword.trim();
    }

    public Integer getUserGender() {
        return userGender;
    }

    public void setUserGender(Integer userGender) {
        this.userGender = userGender;
    }

    public String getUserMobileCode() {
        return userMobileCode;
    }

    public void setUserMobileCode(String userMobileCode) {
        this.userMobileCode = userMobileCode == null ? null : userMobileCode.trim();
    }

    public Double getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(Double userMoney) {
        this.userMoney = userMoney;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail == null ? null : userEmail.trim();
    }

    public String getUserRegistrationTime() {
    	SimpleDateFormat sdf =null;
    	if (null!=userRegistrationTime) {
			 sdf = new SimpleDateFormat("yyyy-MM-dd");
			 return sdf.format(userRegistrationTime);
			
    	}else{
    		 return null;
    	}
       
    }

    public void setUserRegistrationTime(Date userRegistrationTime) {
        this.userRegistrationTime = userRegistrationTime;
    }

    public Integer getUserState() {
        return userState;
    }

    public void setUserState(Integer userState) {
        this.userState = userState;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage == null ? null : userImage.trim();
    }
}